# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

# 定义漫画的内容
class ComicItem(scrapy.Item):
    # define the fields for your item here like:
    topic = scrapy.Field()          # 主题
    download_result = scrapy.Field() # 下载是否完成
    is_pass = scrapy.Field()        # 是否不下载图片

    id = scrapy.Field()             # 编号
    title = scrapy.Field()          # 标题
    subtitle = scrapy.Field()       # 次标题
    detail_url = scrapy.Field()     # 漫画网址
    image_url = scrapy.Field()      # 标题图片网址
    start_time = scrapy.Field()     # 开始下载图片时间

    tag = scrapy.Field()            # 标签（ARRAY）
    author = scrapy.Field()         # 作者（ARRAY）
    coterie = scrapy.Field()        # 同人（ARRAY）
    role = scrapy.Field()           # 角色（ARRAY）
    club = scrapy.Field()           # 社團（ARRAY）
    language = scrapy.Field()       # 語言（ARRAY）
    classify = scrapy.Field()       # 分類（ARRAY）
    pages = scrapy.Field()          # 頁數
    upload = scrapy.Field()         # 上傳


# 定义裏番动画的内容
class DmItem(scrapy.Item):
    # define the fields for your item here like:
    topic = scrapy.Field()          # 主题
    download_result = scrapy.Field() # 下载是否完成
    is_pass = scrapy.Field()        # 是否不下载视频

    id = scrapy.Field()             # 编号
    title = scrapy.Field()          # 标题
    subtitle = scrapy.Field()       # 次标题
    group = scrapy.Field()          # 群组
    group_count = scrapy.Field()    # 群组数量
    detail_url = scrapy.Field()     # 漫画网址
    image_url = scrapy.Field()      # 标题图片网址
    download_url = scrapy.Field()   # 视频下载网址
    download_list = scrapy.Field()  # 视频下载网址清单（ARRAY）

    tag = scrapy.Field()            # 标签（ARRAY）
    author = scrapy.Field()         # 作者
    likes = scrapy.Field()          # 点赞数量
